import java.io.*;

public class Brick implements Serializable
{
	private int edges;
	private Player owner;
	private int powerupType;

	public Brick(Player owner, int edges) {
		this.owner = owner;
		this.edges = edges;
	}


	public int getEdges() {
		return edges;
	}

	public void removeEdges(int edges) {
		this.edges &= ~edges;
	}

	public void addEdges(int edges) {
		this.edges |= edges;
	}

	public void setEdges(int edges) {
		this.edges = edges;
	}


	public Player getPlayer() {
		return owner;
	}


	public int getPowerup() {
		return powerupType;
	}

	public void setPowerup(int powerup) {
		powerupType = powerup;
	}
}